<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<table width="1024" align="center" class="borda">
                <tr>
                    <td>Digite um dado para busca:
                        <form id="form1" name="form1" method="post" action="?menu=visualizar_usuario">
                            <label>
                                <input type="text" size="60" name="texto" id="texto" />
                            </label>
                            <label> </label>
                            <input type="submit" name="buscar" id="buscar"  value="Buscar" />
                        </form></td>
                </tr>
                <tr>
                    <td height="120">
                        <?php
                        $nome = $_POST['texto'];
                        if (isset($nome)) {
                            require_once '../dao/FuncionarioDaoImp.class.php';
                            $dao = new FuncionarioDaoImp();
                            $result = $dao->buscarNome($nome);
                        ?>
                            <table width='1024' border="1">
                            <?php
                            foreach ($result as $row) {
                            ?>
                                <tr>
                                    <td><?php echo $row['idFuncionario'] ?> </td>
                                    <td><?php echo $row['nome'] ?> </td>
                                    <td><?php echo $row['cpf'] ?> </td>
                                    <td><?php echo $row['login'] ?> </td>
                                    <!-- func =  1 indica cadastrar, func = 2 indica alterar e 3 indica deletar e 4 visualizar-->
                                    <td><a href="?menu=visualizar_usuario&func=4&id=<?php echo $row['idFuncionario'] ?>">Visualizar</a> </td>
                                </tr>
                            <?php
                            }
                            ?>
                        </table>
                        <?php
                        }
                        ?>
                    </td>
                </tr>

            </table>
<p>&nbsp;</p>
<form id="form2" name="form2" method="post" action="">
  <table width="1024" border="0" align="center">
    <tr>
      <td width="501" align="right">Conta Origem</td>
      <td width="513"><label>
        <select name="conta1" id="conta1">
        </select>
      </label></td>
    </tr>
    <tr>
      <td align="right">Conta Destino</td>
      <td><label>
        <select name="conta2" id="conta2">
        </select>
      </label></td>
    </tr>
    <tr>
      <td align="right">Valor</td>
      <td><label>
        <input type="text" name="valor" id="valor" />
      </label></td>
    </tr>
    <tr>
      <td align="right">&nbsp;</td>
      <td><label>
        <input type="submit" name="ok" id="ok" value="ok" />
      </label></td>
    </tr>
  </table>
</form>
<p>&nbsp;</p>
</body>
</html>